import 'package:app/util/http.dart';
import 'package:flutter/material.dart';

class VersionApi{

  BuildContext? context;

  static VersionApi of(BuildContext? context) {
    VersionApi versionApi = VersionApi();
    versionApi.context = context;
    return versionApi;
  }

  /// 查找最大版本
  Future<dynamic> maxVersion() async{
    return ApiService.of(context).get('lgs/version/max');
  }
}